<?php

namespace App\Console\Commands;

use App\Constant\Constant;
use App\Constant\ConstantMap;
use App\Events\AsyncLiveToVodEvent;
use App\Exceptions\ExceptionSms;
use App\Models\AdminMenu;
use App\Models\Agreement;
use App\Models\AppStatistic;
use App\Models\Area;
use App\Models\Article;
use App\Models\Banner;
use App\Models\BannerLog;
use App\Models\BannerStatistic;
use App\Models\BaseModel;
use App\Models\Category;
use App\Models\Hotel\Hotel;
use App\Models\ImportAbnormal;
use App\Models\Journal\Journal;
use App\Models\Journal\JournalItem;
use App\Models\Journal\JournalManuscript;
use App\Models\Journal\JournalPublish;
use App\Models\Label;
use App\Models\Live\Live;
use App\Models\Meeting\Meeting;
use App\Models\Meeting\MeetingReport;
use App\Models\News\News;
use App\Models\News\NewsJoiner;
use App\Models\News\NewsTopic;
use App\Models\Project\Project;
use App\Models\Scopes\CreateAtDesc;
use App\Models\Scopes\SortAsc;
use App\Models\Shop\ShopGoods;
use App\Models\Shop\ShopOrder;
use App\Models\Shop\ShopOrderGoods;
use App\Models\TempBucket;
use App\Models\User;
use App\Models\UserGrade;
use App\Models\UserInvoice;
use App\Models\UserInvoiceList;
use App\Models\UserSpecial;
use App\Models\UserTrade;
use App\Models\UserTradeList;
use App\Qmt\Imports\AdsImport;
use App\Qmt\Imports\BaseImport;
use App\Models\Journal\JournalArticle;
use App\Qmt\Imports\JournalImport;
use App\Qmt\Imports\LiveImport;
use App\Qmt\Imports\TradeImport;
use App\Qmt\Imports\UserImport;
use App\Qmt\Imports\VideoImport;
use App\Qmt\Models\Invoice;
use App\Qmt\Models\JournalManuscript as QmtJournalManuscript;
use App\Services\Common\AppService;
use App\Services\Common\BaseService;
use App\Services\Common\EsService;
use App\Services\Common\Finance\NuoNuoService;
use App\Services\Common\User\UserInfoService;
use App\Services\Common\UserService;
use App\Tools\Umeng\UMengStatic;
use App\Tools\VodUpload\AliVod;
use Carbon\Carbon;
use Epinzu\Express\Express100;
use GuzzleHttp\Client;
use Illuminate\Console\Command;
use App\Qmt\Models\Ad as QmtAd;
use PhpOffice\PhpSpreadsheet\IOFactory;
use Symfony\Component\DomCrawler\Crawler;
use TencentCloud\Common\Credential;
use TencentCloud\Common\Profile\ClientProfile;
use TencentCloud\Common\Profile\HttpProfile;
use TencentCloud\Ims\V20201229\ImsClient;
use TencentCloud\Live\V20180801\LiveClient;
use TencentCloud\Live\V20180801\Models\DescribeLiveStreamOnlineListRequest;
use TencentCloud\Live\V20180801\Models\DescribeLiveStreamStateRequest;
use Xin\Crawler\CrawlerManager;

class TestCommand extends Command
{
    /**
     * The name and signature of the console command.
     *
     * @var string
     */
    protected $signature = 'test:test {--func=?}';

    /**
     * The console command description.
     *
     * @var string
     */
    protected $description = 'Test Command';

    /**
     * Create a new command instance.
     *
     * @return void
     */
    public function __construct()
    {
        parent::__construct();
    }

    /**
     * @return void
     */
    public function handle()
    {
        ini_set('memory_limit', -1);
        $func = $this->options()['func'];
        if ($func) {
            $this->{$func}();
        }
    }
    public function test()
    {
        $first = Hotel::whereHas('facilities')->first();
        dd($first);
    }
}
